const mongoose = require('mongoose');
const userModel = require('../models/userModel');
const roleModel = require('../models/roleModel');

function createInitialData() {

    roleModel.create({
        name:"admin",
        desc:"管理员权限"
    }).catch(err=>{ console.log(err);
        console.log("创建管理员失败")})
    roleModel.create({
        name:"user",
        desc:"普通用户权限"
    }).catch(err=>{ console.log("创建普通用户失败")})
    roleModel.create({
        name:"staff",
        desc:"员工用户权限"
    }).catch(err=>{ console.log("创建员工用户失败")})
}

createInitialData()